package nxu.it.service.impl;

import nxu.it.service.GreetingService;
import org.noear.solon.annotation.Component;

@Component
public class GreetingServiceImpl implements GreetingService {
    @Override
    public String sayHello(String name) {
        return String.format("你好, %s", name != null ? name : "无名氏");
    }
}
